package com.retail.system.mapper;

import com.retail.core.common.CommonMapper;
import com.retail.system.entity.po.DeptPo;
import com.retail.system.entity.request.DeptRequest;
import com.retail.system.entity.vo.DeptVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 机构表
 *
 * @author r.guo
 * @since 2019-05-25
 */
@Mapper
public interface DeptMapper extends CommonMapper<DeptRequest, DeptVo> {

    List<DeptPo> getChildByParentId(@Param("parentId") Long parentId, @Param("statusFlag") Integer statusFlag);
}
